package java3_31.SuperMarket;

import java.io.Serializable;

/**
 * 会员信息
 */
public class Member implements Serializable {
    private String name;//姓名
    private String card;//卡号
    private int score;//积分
    private String phone;//电话

    public Member() {
    }

    public Member(String name, String card, int score, String phone) {
        this.name = name;
        this.card = card;
        this.score = score;
        this.phone = phone;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCard() {
        return card;
    }

    public void setCard(String card) {
        this.card = card;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "Member{" +
                "会员姓名：" + name + '\'' +
                ", 会员卡号：" + card + '\'' +
                ", 会员积分：" + score +
                ", 会员电话：" + phone + '\'' +
                '}'+"\n";
    }

}
